/*
 * @Author: sunkai@xinxinapp.cn
 * @Date: 2020-06-11 13:06:08
 * @LastEditTime: 2020-12-20 15:52:44
 * @LastEditors: sunkai@xinxinapp.cn
 * @Description: 
 * @FilePath: /fed-e-task-02-02/webpack.dev.js
 */
const webpack = require('webpack')

const path = require('path')

const common = require('./webpack.common')
// const { CleanWebpackPlugin } = require('clean-webpack-plugin')
const { merge } = require('webpack-merge')

module.exports = merge(common, {
  mode: 'development',
  devServer: {
    hot: true,
    contentBase: path.join(__dirname, 'dist'),
  },
  plugins: [
    // new CleanWebpackPlugin(),
    new webpack.HotModuleReplacementPlugin()
  ]
})